﻿<Window x:Class="SpeachRecognition.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" mc:Ignorable="d" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" Height="323" Width="557">
    <Grid>
        <Grid.Background>
            <LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5">
                <GradientStop Color="#0CB1B1B1" Offset="0" />
                <GradientStop Color="White" Offset="1" />
            </LinearGradientBrush>
        </Grid.Background>
        <Border Margin="2"
                CornerRadius="5"
                BorderBrush="Black">
            <StackPanel >
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="*"/>
                        <ColumnDefinition Width="2*"/>
                    </Grid.ColumnDefinitions>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="auto"/>
                        <RowDefinition Height="auto"/>
                    </Grid.RowDefinitions>
                    <StackPanel Margin="5">
                        <TextBlock Text="Devices:" Margin="5,5,0,0" />
                        <ComboBox Name="cmbDevices" Margin="5 0 5 0">
                            <!--<ComboBox.ItemTemplate>
                                <DataTemplate>
                                    <TextBlock Text="{Binding Description}"/>
                                </DataTemplate>
                            </ComboBox.ItemTemplate>-->
                        </ComboBox>
                        <TextBlock Text="Frequency:" Margin="5,5,0,0" />
                        <ComboBox Name="cmbFreq" Margin="5 0 5 0">
                            <!--<ComboBox.ItemTemplate>
                                <DataTemplate>
                                    <TextBlock Text="{Binding Description}"/>
                                </DataTemplate>
                            </ComboBox.ItemTemplate>-->
                        </ComboBox>
                        <Image  Name="micImage"
                                Margin="5"
                                Source="/SpeachRecognition;component/Images/1319701530_Mic.png" 
                                Height="113" 
                                Width="151"
                                Visibility="Hidden"/>
                        <TextBlock Name="txtProcessing"
                            Text="Processing..."
                                   TextAlignment="Center"
                                   FontFamily="Calibri"
                                   FontSize="20"
                                   Visibility="Hidden"/>
                    </StackPanel>
                    <Border  Grid.Column="1">
                        <Border.Background>
                            <ImageBrush ImageSource="/SpeachRecognition;component/Images/1319797164_kopetestatusmessage.png" Stretch="None" TileMode="None" />
                        </Border.Background>
                        <TextBox Name="txtResponses"
                                Margin="5"
                                TextWrapping="Wrap"
                                Height="200">
                            <TextBox.Background>
                                <LinearGradientBrush Opacity="0.5">
                                    <!--<GradientStopCollection>-->
                                        <GradientStop Color="LightBlue" Offset="0"/>
                                        <GradientStop Color="White" Offset="1"/>
                                    <!--</GradientStopCollection>-->
                                </LinearGradientBrush>
                            </TextBox.Background>
                        </TextBox>
                    </Border>
                    <Button Name="btnRec"
                        Content="Rec"
                            Margin="5"
                            Grid.Column="0"
                            Grid.Row="1" Click="Button_Click" />
                    <Button Content="Clear" Margin="5"
                            Grid.Column="1"
                            Grid.Row="1" Click="Button_Click_1" />
                </Grid>
            </StackPanel>
        </Border>
    </Grid>
</Window>
